class CreateProjects < ActiveRecord::Migration
  def self.up
    create_table :projects do |t|

      t.string :name, :null => false
      t.string :short_name, :null => false
      t.date :projection_start_date
      t.integer :site_update_frequency_id, :null => false
      t.integer :projection_weeks, :default => 0
      t.string :base_url 
      t.integer :bug_tool_url_id
      t.string :table_column_order, :default => '1,7,18,4,5,6,10,12,13,14,2'
      t.boolean :active, :default => true

      t.timestamps
    end
  end

  def self.down
    drop_table :projects
  end
end
